﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Window.Data.Model
{
    public class ConfigModel
    {
        /// <summary>
        /// 个人首页
        /// </summary>
        public DefaultLinkModel DefaultLinks { get; set; }
        /// <summary>
        /// 时间配置
        /// </summary>
        public TimerModel Timer { get; set; }
        /// <summary>
        /// 页面导航配置
        /// </summary>
        public IList<UrlConfigPagesModel> Pages { get; set; }
    }

    public class UrlConfigPagesModel
    {
        /// <summary>
        /// 适配页面
        /// </summary>
        public PageModel Page { get; set; }
        /// <summary>
        /// 链接集合
        /// </summary>
        public IList<LinkModel> Links { get; set; }
    }

    public class PageModel
    {
        /// <summary>
        /// 页面名字
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string Link { get; set; }
        /// <summary>
        /// 当前页是否包含订单
        /// </summary>
        public bool IsOrder { get; set; }
    }

    public class LinkModel
    {
        /// <summary>
        /// 文字
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        public string Link { get; set; }
    }

    public class DefaultLinkModel
    {
        /// <summary>
        /// 首页
        /// </summary>
        public PageModel Home { get; set; }
        /// <summary>
        /// 登录链接
        /// </summary>
        public PageModel Login { get; set; }
        /// <summary>
        /// 个人中心首页
        /// </summary>
        public PageModel Account { get; set; }
        /// <summary>
        /// 安全校验
        /// </summary>
        public PageModel CheckSecurity { get; set; }
    }

    public class TimerModel
    {
        /// <summary>
        /// 时间间隔
        /// </summary>
        public int Interval { get; set; }
    }
}
